﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Channels;
using OnlineGameLibrary.MessageEx;

namespace OnlineGameLibrary.ClientChannel
{
    public interface IMyClientChannel
    {
        bool SendMessageToPlayer(Message msg);

        IAsyncResult BeginReceiveMessageFromPlayer(MessageDefine define, AsyncCallback callback, object asyncState);
        Message EndReceiveMessageFromPlayer(IAsyncResult ar);
        void CancelReceiveMessageFromPlayer(IAsyncResult ar);
    }
}
